﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;

namespace ControlNode
{
    class Directory
    {
        private Dictionary<string, Socket> clientSocketsDictionary;

        public Directory(Dictionary<string, Socket> clientSocketsDictionary)
        {
            this.clientSocketsDictionary = clientSocketsDictionary;
        }

        public Socket Translate(String nodeName)
        {
            return clientSocketsDictionary[nodeName];
        }
    }
}
